<template>
  <div class="q-pa-md q-gutter-sm">
    <q-btn label="是的地方士大夫" color="primary" @click="dialog = true" />

    <q-dialog
        v-model="dialog"
        persistent
        :maximized="maximizedToggle"
        transition-show="slide-up"
        transition-hide="slide-down"
    >
      <q-card class="bg-primary text-white">
        <q-bar>
          <q-space />
          <q-btn dense flat icon="minimize" @click="maximizedToggle = false" :disable="!maximizedToggle">
            <q-tooltip v-if="maximizedToggle" content-class="bg-white text-primary">Minimize</q-tooltip>
          </q-btn>
          <q-btn dense flat icon="crop_square" @click="maximizedToggle = true" :disable="maximizedToggle">
            <q-tooltip v-if="!maximizedToggle" content-class="bg-white text-primary">Maximize</q-tooltip>
          </q-btn>
          <q-btn dense flat icon="close" v-close-popup>
            <q-tooltip content-class="bg-white text-primary">Close</q-tooltip>
          </q-btn>
        </q-bar>
        <q-card class="bg-teal text-white" style="width: 300px">
          <q-card-section class="bg-white text-teal ">
            <q-input flat label="新密码" v-model="newPassWord1"></q-input>
            <q-input flat label="重复输入" v-model="newPassWord2"></q-input>
          </q-card-section>
          <q-card-actions align="right" class="bg-white text-teal">
            <q-btn flat label="修改" @click="webUpDataPassWord"/>
          </q-card-actions>
        </q-card>
      </q-card>
    </q-dialog>
  </div>
</template>

<script>
export default {
  data () {
    return {
      dialog: false,
      maximizedToggle: false
    }
  }
}
</script>
